home *** CD-ROM | disk | FTP | other *** search
/ Aminet 8 / Aminet 8 (1995)(GTI - Schatztruhe)[!][Oct 1995].iso / Aminet / dev / lang / SGMLS.lha / SGMLS / test / test002.sgm < prev    next >
Text File  |  1994-07-10  |  2KB  |  61 lines

  1. <!-- ENTITY and CHARACTER references: reports 13 errors (14 with /D). --   >
  2. <!doctype gdoc [
  3.   <!element gdoc           - - (t1, tag1)>
  4.   <!element t1             - - (#PCDATA|t2)*>
  5.   <!element tag1           - - (#PCDATA|t)*><!attlist tag1 att1 CDATA #implied>
  6.   <!element t2             - - (#PCDATA)>
  7.   <!element t              - - (#PCDATA)><!attlist t a CDATA #implied>
  8.  
  9.   <!--Memory entities: references are terminated by a REFC or non-name char.-->
  10.   <!entity e1 "content of e1">
  11.   <!entity e2 "content of e2">
  12.   <!entity e3 "e3 contains the &e1 and the &e2 as well">
  13.   <!entity e2 "invalid duplicate">
  14.   <!entity test2e SYSTEM>
  15.   <!entity phoney SYSTEM>
  16.   <!entity t2expi pi "processing instruction" >
  17.   <!entity a 'p1 --c--
  18. "p2 p3"  3'>
  19.   <!entity % pe1 "first value" >
  20.   <!entity   ent2 "ent2 has %pe1 included." >
  21.   <!entity % qe1       "%dummy;">
  22.   <!entity   be1  cdata "%qe1;Ô<notag>">
  23.   <!entity   be2  sdata "%qe1;Ô<notag>">
  24.   <!entity   be3 ms     "[%qe1;Ô">
  25.   <!entity   be4 pi     "%qe1;Ô">
  26.   <!entity   x  SYSTEM 'test2x.gml'>
  27.   <!entity   x2 cdata "<notatag>">
  28.   <!ENTITY % e8 "SYSTEM 'h 2 o o --comment">
  29.   <!ENTITY   e9 %e8;-- (a,[b, ("q"|"x"),"z"],c)'>
  30.   <!-- Test public and system fileid generation: set pe=1 -->
  31.   <!entity   g1 system >
  32.   <!entity % g2 system >
  33.   <!entity   g4 public "public name">
  34.   <!entity % g5 public "-//owner//TEXT public name//EN">
  35.   <!entity   g7 system               "system name">
  36.   <!entity % g8 system               "system name">
  37.   <!entity   g9 public "public name" "filename">
  38.   <!entity % g0 public "public name" "filename">
  39. ] -- end of gdoc dtd -->
  40. <gdoc>
  41. <t1>A reference to the &e1 and the &e2;.
  42. The entity &e3
  43. .
  44. <t2 att1 ="The entity &e3
  45. ."</t2></t1>
  46. <tag1 att1="valt1a1 is test2e.gml: &test2e">
  47. &phoney
  48. &t2expi
  49. &a;
  50. &ent2;
  51. &x;
  52. a&#x;
  53. &#tab;ĸb
  54. &x2;
  55. <?a  ō Ô>
  56. /
  57. &be1&be2;&be3
  58. &be4;
  59. <t a="&a;"></t>
  60. </tag1></gdoc>
  61.